﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ComponentInit : MonoBehaviour
{
    void Awake()
    {
        //1. 为 arCamera 添加脚本组件
        GameObject arCamera = GameObject.Find("ARCamera");
        arCamera.AddComponent<BtnClickController>();

        //2. 为 BtnInstallArCoreApk 按钮添加脚本组件
        GameObject btnInstallArCoreApk = GameObject.Find("Canvas/BtnInstallArCoreApk");
        btnInstallArCoreApk.AddComponent<ApkManager>();

    }

    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
